import request from '@/utils/request'

// 查询客户对账单列表
export function listCustomerSettleCheckSheet(query) {
  return request({
    url: '/system/CustomerSettleCheckSheet/list',
    method: 'get',
    params: query
  })
}

// 查询客户对账单详细
export function getCustomerSettleCheckSheetList(params) {
  return request({
    url: '/system/CustomerSettleCheckSheet/query',
    method: 'get',
    params: {
      startDate: params.startDate,
      endDate: params.endDate,
      customerId: params.customerId,
    }
  })
}

// 查询客户对账单详细
export function getCustomerSettleCheckSheet(id) {
  return request({
    url: '/system/CustomerSettleCheckSheet/' + id,
    method: 'get'
  })
}

// 新增客户对账单
export function addCustomerSettleCheckSheet(data) {
  return request({
    url: '/system/CustomerSettleCheckSheet',
    method: 'post',
    data: data
  })
}

// 修改客户对账单
export function updateCustomerSettleCheckSheet(data) {
  return request({
    url: '/system/CustomerSettleCheckSheet',
    method: 'put',
    data: data
  })
}

// 删除客户对账单
export function delCustomerSettleCheckSheet(id) {
  return request({
    url: '/system/CustomerSettleCheckSheet/' + id,
    method: 'delete'
  })
}
